<h1>基础设置</h1>
<div class="bloc">
	<div class="title"> 基础设置 </div>
    <div class="content">
    	<?php echo $this->Form->create('Setting',array('url'=>array('admin'=>true,'controller'=>'Index','action'=>'setting')))?>
    	<table width = '100%'>
    		<tr>
    			<th width = '15%'></th>
    			<td width = '35%'>
    			</td>
    			<th width = '15%'></th><td width = '35%'></td>
    		</tr>
    		<tr>
    			<th>网站标题</th>
    			<td colspan = 3>
    				<?php echo $this->Form->input('site_title',array('label'=>false,'div'=>false,'style'=>'width:90%'))?>
    			</td>
    		</tr>
    		<tr>
    			<th>网站关键词</th>
    			<td colspan = 3>
    				<?php echo $this->Form->input('site_keywords',array('label'=>false,'div'=>false,'style'=>'width:90%'))?>
    			</td>
    		</tr>
    		 <tr>
    			<th>网站描述</th>
    			<td colspan = 3>
    				<?php echo $this->Form->input('site_description',array('label'=>false,'type'=>'textarea','div'=>false,'style'=>'width:90%;height:30px'))?>
    			</td>
    		</tr> 
    		<tr>
    			<th colspan = 4>
    				<hr/>
    			</th>
    		</tr>
    		<tr>
    			<th>邮件名称</th>
    			<td>
    				<?php echo $this->Form->input('mail_name',array('label'=>false,'div'=>false,'style'=>'width:90%'))?>
    			</td>
    			<th>邮件服务器</th>
    			<td>
    				<?php echo $this->Form->input('mail_smtp',array('label'=>false,'div'=>false,'style'=>'width:90%'))?>
    			</td>
    		</tr>
    		<tr>
    			<th>邮件帐号</th>
    			<td>
    				<?php echo $this->Form->input('mail_account',array('label'=>false,'div'=>false,'style'=>'width:90%'))?>
    			</td>
    			<th>邮件密码</th>
    			<td>
    				<?php echo $this->Form->input('mail_password',array('type'=>'password','label'=>false,'div'=>false,'style'=>'width:90%'))?>
    			</td>
    		</tr>
    		<tr>
    			<th>邮件端口</th>
    			<td>
    				<?php echo $this->Form->input('mail_port',array('label'=>false,'div'=>false,'style'=>'width:90%'))?>
    			</td>
    			<th>邮件地址</th>
    			<td>
    				<?php echo $this->Form->input('mail_email',array('label'=>false,'div'=>false,'style'=>'width:90%'))?>
    			</td>
    		</tr>
    		<tr>
    			<th>邮件状态</th>
    			<td>
    				<?php echo $this->Form->input('mail_state',array('type'=>'checkbox','label'=>false,'div'=>false,'style'=>'width:90%'))?>
    			</td>
    			<th></th>
    			<td>
    			</td>
    		</tr>
    		<tr>
    			<th colspan = 4>
    				<hr/>
    			</th>
    		</tr>
    		<tr>
    			<th>短信接口</th>
    			<td>
    				<?php echo $this->Form->input('sms_server',array('label'=>false,'div'=>false,'style'=>'width:90%'))?>
    			</td>
    			<th>短信帐号</th>
    			<td>
    				<?php echo $this->Form->input('sms_account',array('label'=>false,'div'=>false,'style'=>'width:90%'))?>
    			</td>
    		</tr>
    		<tr>
    			<th>短信密码</th>
    			<td>
    				<?php echo $this->Form->input('sms_password',array('type'=>'password','label'=>false,'div'=>false,'style'=>'width:90%'))?>
    			</td>
    			<th>接口状态</th>
    			<td>
    				<?php echo $this->Form->input('sms_state',array('type'=>'checkbox','label'=>false,'div'=>false,'style'=>'width:90%'))?>
    			</td>
    		</tr>
    		<tr>
    			<th colspan = 4>
    				<hr/>
    			</th>
    		</tr>
    		<tr>
    			<th colspan = 4 style = 'text-align:center'>
    				<?php echo $this->Form->submit('Submit')?>
    			</th>
    		</tr>
    	</table>
    	<?php echo $this->Form->end()?>
    </div>
</div>
      